<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 后代选择器 */
        ol li{
            color:red;
        }
        .hobby li{
            color:blue;
        }
        ol a{
            color:green;
        }
    </style>


    <link rel="stylesheet" href="./demo02.css"
</head>
<body>
    <!-- 类选择器 -->
    <p class="css">hello css</p>
    <p class="html">hello html</p>
    <p class="JavaScript JS">hello JavaScript</p>

    <!-- id选择器 -->
    <p id="fe">前端开发</p>
    <p id="server">后端开发</p>

    <ul class="hobby">
        <li>吃饭</li>
        <li>睡觉</li>
        <li>玩游戏</li>
    </ul>

    <ol>
        <li>吃饭</li>
        <li>睡觉</li>
        <li>
            <a href="#">玩游戏</a>
        </li>
    </ol>

</body>
</html>